/**
 * Created by Administrator on 2017/4/19.
 */
class Person{
    name:string;
    age:number;
    tell(){
        return this.name+';'+this.age
    }
}
//继承
class student extends Person{
    school:string;
    //构造
    constructor(name:string,age:number){
        this.name =name;
        this.age =age
    }
    tell(){
        return this.name+';'+this.age+';'+this.school
    }
}

//实例化
let me =new student('Tokky',29);
console.log(me.tell())
console.log(me);
me.school ='XX';
console.log(me);
console.log(me.tell())
